<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no"
    />
    <title>06-双击.html</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
    </style>
  </head>
  <body>
    <div>
      双击才触发
    </div>
    <script>
      const div=document.querySelector("div");
      div.addEventListener("dblclick",function () {
        console.log("双击");
      })
    </script>
  </body>
</html>
